#ifndef _COVEROK_HEADER
#define _COVEROK_HEADER

class Coverok : public Plasma::Applet
{
	Q_OBJECT
	public:
		Coverok(QObject *parent, const QVariantList &args);
		~Coverok();
 
		void init();
		void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option,
							const QRect& contentsRect);

	public Q_SLOTS:
		void playerAdded(const QString &name);
		void playerRemoved(const QString &name);
		void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);

	private:
// 		Plasma::Svg m_svg;
// 		KIcon m_icon;
		bool m_Visible;
		QString m_Title, m_Artist, m_Album;
		QTextDocument m_Text;
		QPixmap m_Cover;

		Cfg m_Cfg;

		void loadCfg();
		void showInterface(bool visible);

	private Q_SLOTS:
		void setImmutabilityChanged(const Plasma::ImmutabilityType immutable);
};

#endif // _COVEROK_HEADER
